package cn.zhouchao.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    //关键字
    private String keyword;
    //当前页
    private Integer currentPage = 1;
    //页数
    private Integer pageSize = 5;
//    private Integer start;
    //每页最多展示条数
    public Integer getStart() {
        return (currentPage - 1 ) * pageSize;
    }
}
